<template>
    <span>啊哈</span>
    <button @click="count++">+</button>
    <my-inject />
</template>

<script setup lang="ts">
import { provide, ref } from 'vue'
import MyInject from "./MyInject.vue"

const count = ref(0)

provide('myname', count)

</script>

<style>
</style>